Skip to content

Conversation

@realrajaryan
Copy link
Contributor

@realrajaryan realrajaryan commented Oct 18, 2025

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Adds support for specifying multiple -t / --tag flags with the build command. All specified tags will point to the same built image.

Example:
container build -t myapp:latest -t myapp:v1.0.0 -t myapp:stable .

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@dcantah
Copy link
Contributor

dcantah commented Oct 21, 2025

Just to be sure, the builder shim doesn't need any updates to support multiple tag headers being sent?

@Ronitsabhaya75
Copy link
Contributor

Just to be sure, the builder shim doesn't need any updates to support multiple tag headers being sent?

I was thinking about multiple tags and what happens when multiple tags are same?

@realrajaryan realrajaryan merged commit ce40ffd into apple:main Oct 21, 2025
2 checks passed
@katiewasnothere
Copy link
Contributor

Just to be sure, the builder shim doesn't need any updates to support multiple tag headers being sent?

I was thinking about multiple tags and what happens when multiple tags are same?

@Ronitsabhaya75 if there are multiple of the same tag it looks like we end up with only one version of the image with that tag.

0xEDU pushed a commit to 0xEDU/container that referenced this pull request Oct 21, 2025
- Closes apple#732.

## Type of Change
- [ ] Bug fix
- [x] New feature
- [ ] Breaking change
- [ ] Documentation update

## Motivation and Context
Adds support for specifying multiple `-t` / `--tag` flags with the
`build` command. All specified tags will point to the same built image.

Example:
`container build -t myapp:latest -t myapp:v1.0.0 -t myapp:stable .`

## Testing
- [x] Tested locally
- [x] Added/updated tests
- [x] Added/updated docs
0xEDU pushed a commit to 0xEDU/container that referenced this pull request Oct 21, 2025
- Closes apple#732.

- [ ] Bug fix
- [x] New feature
- [ ] Breaking change
- [ ] Documentation update

Adds support for specifying multiple `-t` / `--tag` flags with the
`build` command. All specified tags will point to the same built image.

Example:
`container build -t myapp:latest -t myapp:v1.0.0 -t myapp:stable .`

- [x] Tested locally
- [x] Added/updated tests
- [x] Added/updated docs
saehejkang pushed a commit to saehejkang/container that referenced this pull request Oct 28, 2025
- Closes apple#732.

## Type of Change
- [ ] Bug fix
- [x] New feature  
- [ ] Breaking change
- [ ] Documentation update

## Motivation and Context
Adds support for specifying multiple `-t` / `--tag` flags with the
`build` command. All specified tags will point to the same built image.

Example:
`container build -t myapp:latest -t myapp:v1.0.0 -t myapp:stable .`

## Testing
- [x] Tested locally
- [x] Added/updated tests
- [x] Added/updated docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Multiple -t flags on build command should be recognized

4 participants